import Attendance from "../pages/Home/Attendance"
import Mine from "../pages/Home/Mine"
import Statistics from "../pages/Home/Statistics"
import StudentManager from "../pages/Home/StudentManager"
import studentDormitory from "../pages/Home/StudentManager/studentDormitory.vue"
import studentProduct from "../pages/Home/StudentManager/studentProduct.vue"
import studentProfile from "../pages/Home/StudentManager/studentProfile.vue"
import Users from "../pages/Home/Users"
import Welcome from "../pages/Home/Welcome"

const allRoutes=[
    {
        path:"welcome",
        name:"welcome",
        component:Welcome,
        meta:{                          //数据缓存区
            name:"管理首页",             //菜单名
            icon:"iconfont icon-management",                    //菜单图标名
            fullPath:"/welcome"
        }
    },
    {
        path:'StudentManager',
        name:'StudentManager',
        redirect:"/StudentManager/studentProduct",
        component:StudentManager,
        meta:{
            name:"学员管理",
            icon:'iconfont icon-tianjialianxiren'
        },
        children:[
            {
                path:'studentProduct',
                name:'studentProduct',
                component:studentProduct,
                meta:{
                    name:"学员项目管理",
                    icon:'iconfont icon-xiangmu'
                }
            },
            {
                path:"studentProfile",
                name:"studentProfile",
                component:studentProfile,
                meta:{
                    name:"学员资料",
                    icon:'iconfont icon-14'
                }
            },
            {
                path:"studentDormitory",
                name:"studentDormitory",
                component:studentDormitory,
                meta:{
                    name:"学员宿舍",
                    icon:'iconfont icon-sushe'
                }
            }
        ]
    },
    {
        path:'Attendance',
        name:'Attendance',
        component:Attendance,
        meta:{
            name:"考勤管理",
            icon:'iconfont icon-kaoqin'
        }
    },
    {
        path:'Users',
        name:'Users',
        component:Users,
        meta:{
            name:"用户管理",
            icon:'iconfont icon-tianjialianxiren'
        }
    },
    {
        path:'Statistics',
        name:'Statistics',
        component:Statistics,
        meta:{
            name:"数据统计",
            icon:'iconfont icon-shuju'
        }
    },
    {
        path:'Mine',
        name:'Mine',
        component:Mine,
        meta:{
            name:"我的中心",
            icon:'iconfont icon-wode'
        }
    }

]

export default allRoutes